package com.yue92.datalife.request;

import com.yue92.datalife.common.GroupCreate;
import com.yue92.datalife.common.GroupUpdate;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Getter
@Setter
public class RecordItemReq {

    @NotNull(groups = {GroupCreate.class})
    private Long recordId;

    @NotNull(groups = {GroupCreate.class})
    private String recordDate;

    @NotNull(groups = {GroupCreate.class, GroupUpdate.class})
    private Integer value;

    private String comment;

}
